package com.doaio.springbootmybatis.controller;

import com.doaio.springbootmybatis.domain.User;
import com.doaio.springbootmybatis.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HomeController {

    @Autowired
    private UserMapper userM;


    @RequestMapping("/home")
    public void home(){
        User u = userM.findUserByPhone("110");
        System.out.println(u);
    }

}
